Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding viewport to views #153

Merged
merged 1 commit into from
Mar 8, 2021
Merged

Adding viewport to views #153

merged 1 commit into from
Mar 8, 2021

Conversation

MikeRogers0
Copy link
Contributor

@MikeRogers0 MikeRogers0 commented Mar 6, 2021

As part of: https://github.com/zzak/sdoc/issues/151

image

One of the lighthouse recommendation is:

Does not have a <meta name="viewport"> tag with width or initial-scale

So I added one to all the views :) I used the one which ships with the current rails new.

@MikeRogers0 MikeRogers0 marked this pull request as ready for review March 6, 2021 18:02
@p8
Copy link
Member

p8 commented Mar 8, 2021

Thanks @MikeRogers0 !
This does change the layout on mobile from...
image
...to
image
I think both are probably not that usable :) so I think we can merge this..

It would be nice to make the search collapse on mobile.
Maybe something like the hamburger menu on: https://turbo.hotwire.dev/handbook/introduction

@p8 p8 merged commit 1823372 into rails:master Mar 8, 2021
@p8
Copy link
Member

p8 commented Mar 8, 2021

@MikeRogers0 I got a prototype working for a hamburger menu...

@MikeRogers0
Copy link
Contributor Author

@p8 Awesome! I did compare the mobile view using the Firefox inspector & totally missed it doesn't quite match up the real life :/

I'm super excited to see the hamburger menu :D I think that'll 10x the docs!

@MikeRogers0 MikeRogers0 deleted the feature/add-viewport branch March 8, 2021 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants